import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'yu-ylist',
  templateUrl: './ylist.component.html',
  styleUrls: ['./ylist.component.css']
})
export class YlistComponent implements OnInit {
  title:string;
  products:any;
  constructor() { }

  ngOnInit() {
    this.title="标题:商品列表";
      this.products = [
        {name:"hello name1",desc:"desc name1"},
        {name:"goodbye",desc:"desc goodbye"}];
  }

}
